Replication kit for "Voluntary Regulation: Evidence from Medicare Payment Reform"

SAS/ contains the code for extracting the LEJR sample from the raw Medicare claims data:
- build_episode_data_2016_2018.sas generates the sample for years 2016, 2017, and 2018. (Remove 2018 input files to generate the period 2 only data.)
- build.sas (which calls build_episode_data_pre.sas) generates the sample for earlier years.

Stata/ contains the code for generating our baseline sample and for generating the descriptive results:
- do files named 'build_...' build the baseline sample.
- do files that generate exhibits in the paper are named after the corresponding exhibits (e.g. Table3P1.do generates the first panel of Table 3.)
- do files named 'Prep_...' should be run prior to generating the corresponding exhibits

Matlab/ contains the code for generating the model estimates and counterfactuals:
- see the readme file in this folder for additional information.